namespace go media_center



struct media {
     1:  string  MscId
     2:  string  City
     3:  i32     MscPushStreamStartPort
     4:  i64     MscPushStreamPortCount
     5:  string  MscK8sDnsUrl
     6:  string  Protocols
     7:  string  IP
     8:  i32     ThriftPort
     9:  i32     RtspPort
     10: i32     RtmpPort
     11: i32     HLSPort
     12: i32     WebRTCPort
     13: i32     HttpPort
     14: i64     DeployTimestamp
     15: i64     StartTimestamp
     16: i64     UpdateTimestamp
     17: bool	 Online
     18: string  NatMscPushStreamStartIP
     19: i64     NatMscPushStreamStartPort
}

// 数据流
struct stream {
    1: string   DeviceID
    2: string   MediaID
    3: string   City
    4: i64      PlayCount
    5: i64      CreateTimestamp
    6: i64      LastTimestamp
    7: bool     Status
    8: list     <StreamRouteId> StreamRouteIds
}

struct StreamRouteId {
    1:string    StreamID
    2:string    StreamUrl
    //来源媒体中心string
    3:string    SourceID
    4:string    SourceIP
    5:string    SourcePort
    6:string    SourceUrl
    //接收媒体中心
    7:string   ReceiveID
    8:string   ReceiveIP
    9:string   ReceivePort
    10:string   ReceiveUrl
}

